<!DOCTYPE html>
<html>
    <title>load装载事件</title>
    <a href="#" onload="test();">点击</a>
    <script>
        function test(){
            alert("点击了超链接");
        }
      
    </script>

</html>